<!-- 更新用户信息 -->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>
        back_blog - <%= title %>
    </title>
</head>
<link rel="shortcut icon" href="./images/favicon.ico">
<link rel="stylesheet" href="./bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="./stylesheets/public.css">
<link rel="stylesheet" href="./stylesheets/editauthorinfo.css">

<body>
    <div class="authorwrap">
        <%- include head %>
            <div class="navbarconent col-md-12 col-sm-12 col-xs-12">
                <div class="boxContent">
                    <div class="navtitle clearfix">
                        <ol class="breadcrumb">
                            <li><a href="/">主页</a></li>
                            <li><a >用户管理</a></li>
                            <li>
                                <a href="/editauthorinfo">
                                    <%= title %>
                                </a>
                            </li>
                        </ol>
                    </div>
                    <div class="editauthorinfo">
                        <p class="title">更新用户信息</p>
                        <form role="form" class="form-horizontal" action="/editauthorinfo"  enctype="multipart/form-data" method="post" id="updateauthorinfoform">
                            <input type="hidden" name="authorid" value="<%= authorinfos._id%>" id="authorid" />
                            <input type="hidden" name="authorpage" value="<%= page%>" id="authorpage" />
                            <div class="form-group">
                                <label class="col-md-2 col-sm-2">用户名：</label>
                                <div class="col-md-10 col-sm-10">
                                    <input type="text" class="form-control" placeholder="请输入用户名：" id="authorname" name="authorname" value="<%= authorinfos.author%>">
                                </div>
                            </div>
                            <div class="form-group clearfix">
                                <label class="col-md-2 col-sm-2">密码:</label>
                                <div class="col-md-10 col-sm-10">
                                    <input type="password" class="form-control" id="password" placeholder="请输入密码"
                                        name="password">
                                </div>
                            </div>
                            <div class="form-group clearfix">
                                <label class="col-md-2 col-sm-2">邮箱:</label>
                                <div class="col-md-10 col-sm-10">
                                    <input type="text" class="form-control" name="email" id="email" placeholder="请输入邮箱"
                                        value="<%= authorinfos.email%>">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-2 col-sm-2">座右铭:</label>
                                <div class="col-md-10 col-sm-10">
                                    <input type="hidden" name="authormotto" value="<%=authorinfos.motto%>" id="authormotto" />
                                    <textarea class="form-control" rows="3" id="motto" name="motto" title="建议座右铭每句以英文逗号隔开"></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-2 col-sm-2">用户原头像：</label>
                                <div class="col-md-10 col-sm-10">
                                    <input type="hidden" name="authoroldimg" value="<%=authorinfos.headImg%>" />
                                    <img src="<%= authorinfos.headImg%>" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-2 col-sm-2">用户新头像：</label>
                                <div class="col-md-10 col-sm-10">
                                    <div class="filebox">
                                        <input type="file" accept="image/*" id='inputfile' name="headImg" />
                                        <img src="" id='willsetImg' />
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-2 col-sm-2"></label>
                                <div class="col-md-10 col-sm-10">
                                    <button class="btn btn2 btn-primary" type="submit">保 存</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
    </div>

</body>
<script src="./javascripts/jquery.min.js"></script>
<script src="./bootstrap/js/bootstrap.min.js"></script>
<script src="./javascripts/sweetalert2@8.js"></script>
<script src="./javascripts/editauthorinfo.js"></script>
<script type="text/javascript">

</script>

</html>